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
-
MutationOutcome( data: json.Json, store: store.Store, identity: synthetic_identity.SyntheticIdentityRegistry, staged_resource_ids: List(String), log_drafts: List(mutation_helpers.LogDraft), )
pub type PaymentsError {
ParseFailed(root_field.RootFieldError)
}
Constructors
-
ParseFailed(root_field.RootFieldError)
Values
pub fn handle_payments_query(
store: store.Store,
document: String,
variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(json.Json, PaymentsError)
pub fn instrument_source(
instrument: types.CustomerPaymentMethodInstrumentRecord,
) -> graphql_helpers.SourceValue
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)