shopify_draft_proxy/proxy/payments

Payments domain port foundation.

Mirrors the parity-backed parts of src/proxy/payments.ts: payment customization empty/validation behavior, customer payment-method local staging, payment reminder intent staging, no-data finance/POS/dispute/Shop Pay reads, and static payment terms templates.

Types

pub type MutationOutcome {
  MutationOutcome(
    data: json.Json,
    store: store.Store,
    identity: synthetic_identity.SyntheticIdentityRegistry,
    staged_resource_ids: List(String),
    log_drafts: List(mutation_helpers.LogDraft),
  )
}

Constructors

pub type PaymentsError {
  ParseFailed(root_field.RootFieldError)
}

Constructors

Values

pub fn handle_payments_query(
  store: store.Store,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(json.Json, PaymentsError)
pub fn is_payments_mutation_root(name: String) -> Bool
pub fn is_payments_query_root(name: String) -> Bool
pub fn process(
  store: store.Store,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(json.Json, PaymentsError)
pub fn process_mutation(
  store: store.Store,
  identity: synthetic_identity.SyntheticIdentityRegistry,
  request_path: String,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(MutationOutcome, PaymentsError)
pub fn wrap_data(data: json.Json) -> json.Json
Search Document