Add `PayPalExperienceProfileInput.userAction`

This commit is contained in:
Chris Eager 2022-12-09 17:23:55 -06:00 committed by Chris Eager
parent 26f5ffdde3
commit 24ac32e6e6
2 changed files with 440 additions and 130 deletions

View File

@ -3962,24 +3962,34 @@
"defaultValue": null "defaultValue": null
}, },
{ {
"name": "paypalExperienceProfile", "name" : "paypalExperienceProfile",
"description": "Defines the experience profile used to render the approval flow.", "description" : "Defines the experience profile used to render the billing agreement approval flow.",
"type": { "type" : {
"kind": "INPUT_OBJECT", "kind" : "INPUT_OBJECT",
"name": "PayPalExperienceProfileInput", "name" : "PayPalBillingAgreementExperienceProfileInput",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
}, },
{ {
"name": "shippingAddress", "name" : "shippingAddress",
"description": "Merchant-provided shipping address. Fields addressLine1, adminArea2, and countryCode are required for Billing Agreements.", "description" : "Merchant-provided shipping address. Fields addressLine1, adminArea2, and countryCode are required for Billing Agreements.",
"type": { "type" : {
"kind": "INPUT_OBJECT", "kind" : "INPUT_OBJECT",
"name": "AddressInput", "name" : "AddressInput",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
},
{
"name" : "paypalProductAttributes",
"description" : "Product attributes input for PayPal billing agreement.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "PayPalProductAttributesInput",
"ofType" : null
},
"defaultValue" : null
} }
], ],
"interfaces": null, "interfaces": null,
@ -6984,16 +6994,28 @@
"deprecationReason": "Use `protectionLevel` instead." "deprecationReason": "Use `protectionLevel` instead."
}, },
{ {
"name": "protectionLevel", "name" : "protectionLevel",
"description": "The protection level of the dispute.", "description" : "The protection level of the dispute.",
"args": [], "args" : [],
"type": { "type" : {
"kind": "ENUM", "kind" : "ENUM",
"name": "DisputeProtectionLevel", "name" : "DisputeProtectionLevel",
"ofType": null "ofType" : null
}, },
"isDeprecated": false, "isDeprecated" : false,
"deprecationReason": null "deprecationReason" : null
},
{
"name" : "preDisputeProgram",
"description" : "The pre-dispute program of the dispute.",
"args" : [],
"type" : {
"kind" : "ENUM",
"name" : "PreDisputeProgram",
"ofType" : null
},
"isDeprecated" : false,
"deprecationReason" : null
} }
], ],
"inputFields": null, "inputFields": null,
@ -7935,17 +7957,27 @@
"name": "SearchChargebackProtectionLevelInput", "name": "SearchChargebackProtectionLevelInput",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue" : null
}, },
{ {
"name": "protectionLevel", "name" : "protectionLevel",
"description": "Find disputes with a given protection level.", "description" : "Find disputes with a given protection level.",
"type": { "type" : {
"kind": "INPUT_OBJECT", "kind" : "INPUT_OBJECT",
"name": "SearchDisputeProtectionLevelInput", "name" : "SearchDisputeProtectionLevelInput",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
},
{
"name" : "preDisputeProgram",
"description" : "Find disputes with a given pre-dispute program.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "SearchPreDisputeProgramInput",
"ofType" : null
},
"defaultValue" : null
} }
], ],
"interfaces": null, "interfaces": null,
@ -16058,26 +16090,134 @@
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "ID",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
} }
], ],
"interfaces": null, "interfaces" : null,
"enumValues": null, "enumValues" : null,
"possibleTypes": null "possibleTypes" : null
}, },
{ {
"kind": "INPUT_OBJECT", "kind" : "ENUM",
"name": "PayPalBillingAgreementInput", "name" : "PayPalBillingAgreementChargePattern",
"description": "Input fields for a PayPal account to be vaulted.", "description" : "Expected business/pricing model for a billing agreement (Charge Patterns).",
"fields": null, "fields" : null,
"inputFields": [ "inputFields" : null,
"interfaces" : null,
"enumValues" : [
{ {
"name": "billingAgreementToken", "name" : "DEFERRED",
"description": "The Billing Agreement token.", "description" : "Pay after use, non-recurring post-paid, variable amount, irregular.",
"type": { "isDeprecated" : false,
"kind": "NON_NULL", "deprecationReason" : null
},
{
"name" : "IMMEDIATE",
"description" : "On-demand instant payments - non-recurring, pre-paid, variable amount.",
"isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "RECURRING_POSTPAID",
"description" : "Pay on a fixed date based on usage or consumption after the goods/service is delivered.",
"isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "RECURRING_PREPAID",
"description" : "Pay upfront fixed or variable amount on a fixed date before the goods/service is delivered.",
"isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "THRESHOLD_POSTPAID",
"description" : "Charge payer when the set amount is reached or monthly billing cycle, whichever comes first, after the goods/service is delivered.",
"isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "THRESHOLD_PREPAID",
"description" : "Charge payer when the set amount is reached or monthly billing cycle, whichever comes first, before the goods/service is delivered.",
"isDeprecated" : false,
"deprecationReason" : null
}
],
"possibleTypes" : null
},
{
"kind" : "INPUT_OBJECT",
"name" : "PayPalBillingAgreementExperienceProfileInput",
"description" : "Controls the experience in a PayPal billing agreement approval flow.",
"fields" : null,
"inputFields" : [
{
"name" : "brandName",
"description" : "Merchant brand name to be displayed on the PayPal approval pages.",
"type" : {
"kind" : "SCALAR",
"name" : "String",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "collectShippingAddress",
"description" : "Indicates whether a shipping address will be collected from the customer during the agreement approval flow.",
"type" : {
"kind" : "SCALAR",
"name" : "Boolean",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "landingPageType",
"description" : "Specifies the PayPal page to display when a user lands on the PayPal site to complete the payment.",
"type" : {
"kind" : "ENUM",
"name" : "PayPalLandingPageType",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "locale",
"description" : "Locale of the PayPal payment approval experience.",
"type" : {
"kind" : "SCALAR",
"name" : "Language",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "shippingAddressEditable",
"description" : "Indicates whether to enable user editing of the shipping address. Only applies when shipping address is provided by merchant.",
"type" : {
"kind" : "SCALAR",
"name" : "Boolean",
"ofType" : null
},
"defaultValue" : null
}
],
"interfaces" : null,
"enumValues" : null,
"possibleTypes" : null
},
{
"kind" : "INPUT_OBJECT",
"name" : "PayPalBillingAgreementInput",
"description" : "Input fields for a PayPal account to be vaulted.",
"fields" : null,
"inputFields" : [
{
"name" : "billingAgreementToken",
"description" : "The Billing Agreement token.",
"type" : {
"kind" : "NON_NULL",
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
@ -16362,17 +16502,27 @@
"name": "Language", "name": "Language",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue" : null
}, },
{ {
"name": "shippingAddressEditable", "name" : "shippingAddressEditable",
"description": "Indicates whether to enable user editing of the shipping address. Only applies when shipping address is provided by merchant.", "description" : "Indicates whether to enable user editing of the shipping address. Only applies when shipping address is provided by merchant.",
"type": { "type" : {
"kind": "SCALAR", "kind" : "SCALAR",
"name": "Boolean", "name" : "Boolean",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
},
{
"name" : "userAction",
"description" : "Presents the customer with either the Continue or Pay Now (COMMIT) checkout flow. Default is Continue flow if the field is not provided.",
"type" : {
"kind" : "ENUM",
"name" : "PayPalUserAction",
"ofType" : null
},
"defaultValue" : null
} }
], ],
"interfaces": null, "interfaces": null,
@ -16940,26 +17090,47 @@
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "String", "name": "String",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
} }
], ],
"interfaces": null, "interfaces" : null,
"enumValues": null, "enumValues" : null,
"possibleTypes": null "possibleTypes" : null
}, },
{ {
"kind": "OBJECT", "kind" : "INPUT_OBJECT",
"name": "PayPalQualifyingFinancingOption", "name" : "PayPalProductAttributesInput",
"description": "PayPal qualifying financing options for a product.", "description" : "Product attributes input for PayPal billing agreement.",
"fields": [ "fields" : null,
"inputFields" : [
{ {
"name": "apr", "name" : "paypalBillingAgreementChargePattern",
"description": "APR percentage.", "description" : "Expected business/pricing model for a billing agreement (Charge Patterns).",
"args": [], "type" : {
"type": { "kind" : "ENUM",
"kind": "SCALAR", "name" : "PayPalBillingAgreementChargePattern",
"ofType" : null
},
"defaultValue" : null
}
],
"interfaces" : null,
"enumValues" : null,
"possibleTypes" : null
},
{
"kind" : "OBJECT",
"name" : "PayPalQualifyingFinancingOption",
"description" : "PayPal qualifying financing options for a product.",
"fields" : [
{
"name" : "apr",
"description" : "APR percentage.",
"args" : [],
"type" : {
"kind" : "SCALAR",
"name": "Percentage", "name": "Percentage",
"ofType": null "ofType": null
}, },
@ -17589,26 +17760,49 @@
"type": { "type": {
"kind": "OBJECT", "kind": "OBJECT",
"name": "PaymentMethod", "name": "PaymentMethod",
"ofType": null "ofType" : null
}, },
"isDeprecated": false, "isDeprecated" : false,
"deprecationReason": null "deprecationReason" : null
} }
], ],
"inputFields": null, "inputFields" : null,
"interfaces": [], "interfaces" : [],
"enumValues": null, "enumValues" : null,
"possibleTypes": null "possibleTypes" : null
}, },
{ {
"kind": "INTERFACE", "kind" : "ENUM",
"name": "Payment", "name" : "PayPalUserAction",
"description": "A merchant-initiated movement of money between the merchant and a customer, by way of a payment method. Payments can represent money moving either from a customer to the merchant by charging a payment method (a Transaction), or from the merchant back to a customer by refunding a previous transaction (a Refund).", "description" : "PayPal User action type.",
"fields": [ "fields" : null,
"inputFields" : null,
"interfaces" : null,
"enumValues" : [
{ {
"name": "id", "name" : "COMMIT",
"description": "Unique identifier.", "description" : null,
"args": [], "isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "CONTINUE",
"description" : null,
"isDeprecated" : false,
"deprecationReason" : null
}
],
"possibleTypes" : null
},
{
"kind" : "INTERFACE",
"name" : "Payment",
"description" : "A merchant-initiated movement of money between the merchant and a customer, by way of a payment method. Payments can represent money moving either from a customer to the merchant by charging a payment method (a Transaction), or from the merchant back to a customer by refunding a previous transaction (a Refund).",
"fields" : [
{
"name" : "id",
"description" : "Unique identifier.",
"args" : [],
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
@ -19479,25 +19673,48 @@
"name": "extensionNumber", "name": "extensionNumber",
"description": "The extension number.", "description": "The extension number.",
"type": { "type": {
"kind": "SCALAR", "kind" : "SCALAR",
"name": "String", "name" : "String",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
} }
], ],
"interfaces": null, "interfaces" : null,
"enumValues": null, "enumValues" : null,
"possibleTypes": null "possibleTypes" : null
}, },
{ {
"kind": "ENUM", "kind" : "ENUM",
"name": "ProcessorDeclineType", "name" : "PreDisputeProgram",
"description": "Whether the decline is likely to be temporary or persistent. Can be taken into consideration when determining whether to retry a declined charge.", "description" : "The pre-dispute program of the dispute.",
"fields": null, "fields" : null,
"inputFields": null, "inputFields" : null,
"interfaces": null, "interfaces" : null,
"enumValues": [ "enumValues" : [
{
"name" : "NONE",
"description" : "The dispute does not have a pre-dispute program.",
"isDeprecated" : false,
"deprecationReason" : null
},
{
"name" : "VISA_RDR",
"description" : "The dispute is part of the Visa Rapid Dispute Resolution (RDR) program.",
"isDeprecated" : false,
"deprecationReason" : null
}
],
"possibleTypes" : null
},
{
"kind" : "ENUM",
"name" : "ProcessorDeclineType",
"description" : "Whether the decline is likely to be temporary or persistent. Can be taken into consideration when determining whether to retry a declined charge.",
"fields" : null,
"inputFields" : null,
"interfaces" : null,
"enumValues" : [
{ {
"name": "HARD", "name": "HARD",
"description": "Hard declines are the result of an error or issue which can't be resolved immediately; the decline is not temporary and subsequent charges on the same payment method will likely not be successful.", "description": "Hard declines are the result of an error or issue which can't be resolved immediately; the decline is not temporary and subsequent charges on the same payment method will likely not be successful.",
@ -20163,19 +20380,31 @@
"ofType": null "ofType": null
}, },
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason" : null
}, },
{ {
"name": "disbursementDetails", "name" : "disbursementDetails",
"description": "The disbursement details associated with this refund. This field is only available after the refund is SETTLED and if you have an eligible merchant account.", "description" : "The disbursement details associated with this refund. This field is only available after the refund is SETTLED and if you have an eligible merchant account.",
"args": [], "args" : [],
"type": { "type" : {
"kind": "OBJECT", "kind" : "OBJECT",
"name": "DisbursementDetails", "name" : "DisbursementDetails",
"ofType": null "ofType" : null
}, },
"isDeprecated": false, "isDeprecated" : false,
"deprecationReason": null "deprecationReason" : null
},
{
"name" : "paymentInitiatedAt",
"description" : "The refund date and time as reported by the in-store payment terminal.",
"args" : [],
"type" : {
"kind" : "SCALAR",
"name" : "Timestamp",
"ofType" : null
},
"isDeprecated" : false,
"deprecationReason" : null
} }
], ],
"inputFields": null, "inputFields": null,
@ -24010,17 +24239,57 @@
"name": "SearchTimestampInput", "name": "SearchTimestampInput",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue" : null
}, },
{ {
"name": "voidedAt", "name" : "voidedAt",
"description": "Find transactions with a given voided at time.", "description" : "Find transactions with a given voided at time.",
"type": { "type" : {
"kind": "INPUT_OBJECT", "kind" : "INPUT_OBJECT",
"name": "SearchTimestampInput", "name" : "SearchTimestampInput",
"ofType": null "ofType" : null
}, },
"defaultValue": null "defaultValue" : null
},
{
"name" : "authorizationExpiredAt",
"description" : "Find transactions with a given authorization expired at time.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "SearchTimestampInput",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "authorizedAt",
"description" : "Find transactions with a given authorized at time.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "SearchTimestampInput",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "gatewayRejectedAt",
"description" : "Find transactions with a given gateway rejected at time.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "SearchTimestampInput",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "processorDeclinedAt",
"description" : "Find transactions with a given processor declined at time.",
"type" : {
"kind" : "INPUT_OBJECT",
"name" : "SearchTimestampInput",
"ofType" : null
},
"defaultValue" : null
} }
], ],
"interfaces": null, "interfaces": null,
@ -24036,25 +24305,64 @@
{ {
"name": "in", "name": "in",
"description": "The payment is a transaction and/or a refund.", "description": "The payment is a transaction and/or a refund.",
"type": { "type" : {
"kind": "LIST", "kind" : "LIST",
"name": null, "name" : null,
"ofType": { "ofType" : {
"kind": "NON_NULL", "kind" : "NON_NULL",
"name": null, "name" : null,
"ofType": { "ofType" : {
"kind": "ENUM", "kind" : "ENUM",
"name": "PaymentSearchType", "name" : "PaymentSearchType",
"ofType": null "ofType" : null
} }
} }
}, },
"defaultValue": null "defaultValue" : null
} }
], ],
"interfaces": null, "interfaces" : null,
"enumValues": null, "enumValues" : null,
"possibleTypes": null "possibleTypes" : null
},
{
"kind" : "INPUT_OBJECT",
"name" : "SearchPreDisputeProgramInput",
"description" : "Input fields for searching for a dispute with a given pre-dispute program.",
"fields" : null,
"inputFields" : [
{
"name" : "is",
"description" : "The dispute's pre-dispute program is exactly this value.",
"type" : {
"kind" : "ENUM",
"name" : "PreDisputeProgram",
"ofType" : null
},
"defaultValue" : null
},
{
"name" : "in",
"description" : "The dispute's pre-dispute program is one of these values.",
"type" : {
"kind" : "LIST",
"name" : null,
"ofType" : {
"kind" : "NON_NULL",
"name" : null,
"ofType" : {
"kind" : "ENUM",
"name" : "PreDisputeProgram",
"ofType" : null
}
}
},
"defaultValue" : null
}
],
"interfaces" : null,
"enumValues" : null,
"possibleTypes" : null
}, },
{ {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
@ -34780,6 +35088,6 @@
} }
}, },
"extensions": { "extensions": {
"requestId": "b0a5a574-0298-4b69-8406-f2db0b1c6e30" "requestId" : "1773a68c-af86-410b-aea2-e03390380697"
} }
} }

View File

@ -18,6 +18,7 @@ import com.braintree.graphql.client.type.PayPalExperienceProfileInput;
import com.braintree.graphql.client.type.PayPalIntent; import com.braintree.graphql.client.type.PayPalIntent;
import com.braintree.graphql.client.type.PayPalLandingPageType; import com.braintree.graphql.client.type.PayPalLandingPageType;
import com.braintree.graphql.client.type.PayPalOneTimePaymentInput; import com.braintree.graphql.client.type.PayPalOneTimePaymentInput;
import com.braintree.graphql.client.type.PayPalUserAction;
import com.braintree.graphql.client.type.TokenizePayPalOneTimePaymentInput; import com.braintree.graphql.client.type.TokenizePayPalOneTimePaymentInput;
import com.braintree.graphql.client.type.TransactionInput; import com.braintree.graphql.client.type.TransactionInput;
import com.braintree.graphql.clientoperation.ChargePayPalOneTimePaymentMutation; import com.braintree.graphql.clientoperation.ChargePayPalOneTimePaymentMutation;
@ -101,7 +102,8 @@ class BraintreeGraphqlClient {
Optional.present(false), Optional.present(false),
Optional.present(PayPalLandingPageType.LOGIN), Optional.present(PayPalLandingPageType.LOGIN),
Optional.present(locale), Optional.present(locale),
Optional.absent())), Optional.absent(),
Optional.present(PayPalUserAction.COMMIT))),
Optional.absent(), Optional.absent(),
Optional.absent(), Optional.absent(),
returnUrl, returnUrl,