예제 #1
0
        public static UpdateSubscriptionRequest UpdateSubscription()
        {
            string url = ApiUtil.BuildUrl("estimates", "update_subscription");

            return(new UpdateSubscriptionRequest(url, HttpMethod.POST));
        }
예제 #2
0
        public static PlanListRequest List()
        {
            string url = ApiUtil.BuildUrl("plans");

            return(new PlanListRequest(url));
        }
예제 #3
0
        public static EntityRequest <Type> Delete(string id)
        {
            string url = ApiUtil.BuildUrl("plans", CheckNull(id), "delete");

            return(new EntityRequest <Type>(url, HttpMethod.POST));
        }
예제 #4
0
        public static UpdateCardRequest UpdateCard(string id)
        {
            string url = ApiUtil.BuildUrl("payment_sources", CheckNull(id), "update_card");

            return(new UpdateCardRequest(url, HttpMethod.POST));
        }
예제 #5
0
        public static CreateRequest Create()
        {
            string url = ApiUtil.BuildUrl("plans");

            return(new CreateRequest(url, HttpMethod.POST));
        }
예제 #6
0
        public static CreateUsingTokenRequest CreateUsingToken()
        {
            string url = ApiUtil.BuildUrl("payment_sources", "create_using_token");

            return(new CreateUsingTokenRequest(url, HttpMethod.POST));
        }
예제 #7
0
        public static CreateCardRequest CreateCard()
        {
            string url = ApiUtil.BuildUrl("payment_sources", "create_card");

            return(new CreateCardRequest(url, HttpMethod.POST));
        }
예제 #8
0
        public static TransactionListRequest List()
        {
            string url = ApiUtil.BuildUrl("transactions");

            return(new TransactionListRequest(url));
        }
예제 #9
0
        public static ListRequest TransactionsForCustomer(string id)
        {
            string url = ApiUtil.BuildUrl("customers", CheckNull(id), "transactions");

            return(new ListRequest(url));
        }
예제 #10
0
        public static EntityRequest <Type> Archive(string id)
        {
            string url = ApiUtil.BuildUrl("coupon_codes", CheckNull(id), "archive");

            return(new EntityRequest <Type>(url, HttpMethod.POST));
        }
예제 #11
0
        public static OrderListRequest List()
        {
            string url = ApiUtil.BuildUrl("orders");

            return(new OrderListRequest(url));
        }
예제 #12
0
        public static CouponCodeListRequest List()
        {
            string url = ApiUtil.BuildUrl("coupon_codes");

            return(new CouponCodeListRequest(url));
        }
예제 #13
0
        public static SiteMigrationDetailListRequest List()
        {
            string url = ApiUtil.BuildUrl("site_migration_details");

            return(new SiteMigrationDetailListRequest(url));
        }
예제 #14
0
        public static RenewalEstimateRequest RenewalEstimate(string id)
        {
            string url = ApiUtil.BuildUrl("subscriptions", CheckNull(id), "renewal_estimate");

            return(new RenewalEstimateRequest(url, HttpMethod.GET));
        }
예제 #15
0
        public static ExportPaymentSourceRequest ExportPaymentSource(string id)
        {
            string url = ApiUtil.BuildUrl("payment_sources", CheckNull(id), "export_payment_source");

            return(new ExportPaymentSourceRequest(url, HttpMethod.POST));
        }
예제 #16
0
        public static ListRequest TransactionsForSubscription(string id)
        {
            string url = ApiUtil.BuildUrl("subscriptions", CheckNull(id), "transactions");

            return(new ListRequest(url));
        }
예제 #17
0
        public static EntityRequest <Type> DeleteLocal(string id)
        {
            string url = ApiUtil.BuildUrl("payment_sources", CheckNull(id), "delete_local");

            return(new EntityRequest <Type>(url, HttpMethod.POST));
        }
예제 #18
0
        public static ListRequest PaymentsForInvoice(string id)
        {
            string url = ApiUtil.BuildUrl("invoices", CheckNull(id), "payments");

            return(new ListRequest(url));
        }
예제 #19
0
        public static CreateUsingPaymentIntentRequest CreateUsingPaymentIntent()
        {
            string url = ApiUtil.BuildUrl("payment_sources", "create_using_payment_intent");

            return(new CreateUsingPaymentIntentRequest(url, HttpMethod.POST));
        }
예제 #20
0
        public static CheckoutExistingRequest CheckoutExisting()
        {
            string url = ApiUtil.BuildUrl("hosted_pages", "checkout_existing");

            return(new CheckoutExistingRequest(url, HttpMethod.POST));
        }
예제 #21
0
        public static CreateBankAccountRequest CreateBankAccount()
        {
            string url = ApiUtil.BuildUrl("payment_sources", "create_bank_account");

            return(new CreateBankAccountRequest(url, HttpMethod.POST));
        }
예제 #22
0
        public static UpdateCardRequest UpdateCard()
        {
            string url = ApiUtil.BuildUrl("hosted_pages", "update_card");

            return(new UpdateCardRequest(url, HttpMethod.POST));
        }
예제 #23
0
        public static VerifyBankAccountRequest VerifyBankAccount(string id)
        {
            string url = ApiUtil.BuildUrl("payment_sources", CheckNull(id), "verify_bank_account");

            return(new VerifyBankAccountRequest(url, HttpMethod.POST));
        }
예제 #24
0
        public static UpdatePaymentMethodRequest UpdatePaymentMethod()
        {
            string url = ApiUtil.BuildUrl("hosted_pages", "update_payment_method");

            return(new UpdatePaymentMethodRequest(url, HttpMethod.POST));
        }
예제 #25
0
        public static UpdateRequest Update(string id)
        {
            string url = ApiUtil.BuildUrl("plans", CheckNull(id));

            return(new UpdateRequest(url, HttpMethod.POST));
        }
예제 #26
0
        public static PaymentSourceListRequest List()
        {
            string url = ApiUtil.BuildUrl("payment_sources");

            return(new PaymentSourceListRequest(url));
        }
예제 #27
0
        public static EntityRequest <Type> Retrieve(string id)
        {
            string url = ApiUtil.BuildUrl("plans", CheckNull(id));

            return(new EntityRequest <Type>(url, HttpMethod.GET));
        }
예제 #28
0
        public static SwitchGatewayAccountRequest SwitchGatewayAccount(string id)
        {
            string url = ApiUtil.BuildUrl("payment_sources", CheckNull(id), "switch_gateway_account");

            return(new SwitchGatewayAccountRequest(url, HttpMethod.POST));
        }
예제 #29
0
        public static CopyRequest Copy()
        {
            string url = ApiUtil.BuildUrl("plans", "copy");

            return(new CopyRequest(url, HttpMethod.POST));
        }
예제 #30
0
        public static CreateSubForCustomerEstimateRequest CreateSubForCustomerEstimate(string id)
        {
            string url = ApiUtil.BuildUrl("customers", CheckNull(id), "create_subscription_estimate");

            return(new CreateSubForCustomerEstimateRequest(url, HttpMethod.GET));
        }